package com.ruoyi.eims.cgreturn.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 退款管理对象 t_cgreturn_order
 * 
 * @author hp
 * @date 2023-02-06
 */
public class CgreturnOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 采购订单id */
    @Excel(name = "采购订单id")
    private Long pid;

    /** 供应商 */
    @Excel(name = "供应商")
    private String vendorId;

    /** 单据编号 */
    @Excel(name = "单据编号")
    private String orderNo;

    /** 商品信息 */
    @Excel(name = "商品信息")
    private String goodsId;

    /** 单据日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "单据日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 操作员 */
    @Excel(name = "操作员")
    private Long userId;

    /** 退款金额 */
    @Excel(name = "退款金额")
    private BigDecimal rePay;

    /** 实退金额 */
    @Excel(name = "实退金额")
    private BigDecimal relPay;

    /** 状态 */
    @Excel(name = "状态")
    private Integer state;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String vendorName;

    private BigDecimal shouldPay;

    public BigDecimal getShouldPay() {
        return shouldPay;
    }

    public void setShouldPay(BigDecimal shouldPay) {
        this.shouldPay = shouldPay;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setVendorId(String vendorId) 
    {
        this.vendorId = vendorId;
    }

    public String getVendorId() 
    {
        return vendorId;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setGoodsId(String goodsId) 
    {
        this.goodsId = goodsId;
    }

    public String getGoodsId() 
    {
        return goodsId;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setRePay(BigDecimal rePay) 
    {
        this.rePay = rePay;
    }

    public BigDecimal getRePay() 
    {
        return rePay;
    }

    public BigDecimal getRelPay() {
        return relPay;
    }

    public void setRelPay(BigDecimal relPay) {
        this.relPay = relPay;
    }

    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setVendorName(String vendorName) 
    {
        this.vendorName = vendorName;
    }

    public String getVendorName() 
    {
        return vendorName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pid", getPid())
            .append("vendorId", getVendorId())
            .append("orderNo", getOrderNo())
            .append("goodsId", getGoodsId())
            .append("createDate", getCreateDate())
            .append("userId", getUserId())
            .append("rePay", getRePay())
            .append("relPay", getRelPay())
            .append("state", getState())
            .append("vendorName", getVendorName())
            .toString();
    }
}
